<?php
// Ajax section
$xajax = new xajax();
$xajax->registerFunction("checkLoginForm");
$xajax->registerFunction("jsLogin");
//$xajax->debugOn();
$xajax->processRequests();
require_once(ABSPATH . "includes/index-header.html");
?>
</head>
<?php
// Css section
echo zeus_style('login');
echo zeus_style('colors-fresh');

?>
<title>
<?php echo zeus_page_title();

?></title>
<body class='login'>
<div id='login'>
<h1>
<a href='' title='Powered by SmartVision'><?php echo zeus_site_name();

?></a>
</h1>
<?php
$loginform = new zeus_quickform(array("name" => "loginform",
        "id" => "loginform",
        "action" => "javascript:void(null);",
        "onsubmit" => "xajax_jsLogin();",
        "method" => "post"));
echo $loginform->start();

?>
<p>
<label>
<?php echo _e('Username:');

?>
<br>
<?php
echo $loginform->addElement("text", array("name" => "loginuser",
        "id" => "user_login",
        "class" => "input",
        "value" => $_POST['loginuser'],
        "size" => "20",
        "tabindex" => "10"
        ));

?>
</label>
</p>
<p>
<label>
<?php echo _e('Password:');

?>
<br>
<?php
echo $loginform->addElement("password", array("name" => "loginpwd",
        "id" => "user_pass",
        "class" => "input",
        "value" => $_POST['loginpwd'],
        "size" => "20",
        "tabindex" => "20"
        ));

?>
</label>
</p>
<p class="forgetmenot">
<label>
<?php
echo $loginform->addElement("checkbox", array("name" => "rememberme",
        "id" => "rememberme",
        "value" => "forever",
        "tabindex" => "90"
        ));

?>
<?php echo _e('Remember me');

?>
</label>
</p>
<p class="submit">
<?php
echo $loginform->addElement("submit", array("name" => "login",
        "id" => "wp-submit",
        "value" => _e('Log In'),
        "tabindex" => "100"
        ))
?>
</p>
<?php
echo $loginform->end();
require_once(ABSPATH . "modules/getpassword.inc.php");
require_once(ABSPATH . "modules/index-nav.inc.php");
?>
</body>